package utils;

public class ColumnToFieldName {
	public static String changeColumnToFieldName(String columnName) {
		String[] array = columnName.split("_");
        StringBuffer sb = null;
        for (String cn : array) {
            cn = cn.toLowerCase();
            if (sb == null) {
                sb = new StringBuffer(cn);
                continue;
            }
            sb.append(cn.substring(0, 1).toUpperCase()).append(cn.substring(1));
        }
        return sb.toString();
	}
}
